# coding: utf-8
'''

*args 和 **kwargs
只是为了方便并没有强制使用
'''

def example(*args):
	for count, thing in enumerate(args):
		print '{0}. {1}'.format(count, thing)


args = ('a', 'b', 'c')
example('a', 'b', 'c')
example(*args)

def example2(**kwargs):
	for k, v in kwargs.items():
		print '{0} = {1}'.format(k, v)

kwargs = {'a':1, 'b':2}
example2(a=1, b=2)
example2(**kwargs)
